<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/include.inc.jsp"%>
		<form id="pagerForm" method="post"
			action="finduserentitylist">
			<input type="hidden" name="numPerPage" value="${pagesitem}" />
			<input type="hidden" name="pageNum" value="${pageNum}" />
			<input type="hidden" name="userEntity.name" value="${userEntity.name}" />
		</form>
		<div class="page">
			<div class="pageHeader">
				<form onsubmit="return navTabSearch(this);"
					action="finduserentitylist" method="post">
					<div class="searchBar">
						<ul class="searchContent">
							<li>
								<label>
									用户名：
								</label>
								<input type="text" id="userEntity.name" name="userEntity.name" />
							</li>
							<li>
								<div class="buttonActive">
									<div class="buttonContent">
										<button type="submit">
											检索
										</button>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<div class="pageContent">
				<div class="panelBar">
					<ul class="toolBar">
						<li>
							<a class="add" href="toadduserentity" target="dialog"><span>添加</span></a>
						</li>
						<li>
							<a class="delete" href="todeleteuserentity?id={slt_id}"
								target="navTabTodo" title="确定要删除吗?"><span>删除</span>
							</a>
						</li>
						<li>
							<a class="edit" href="toedituserentity?id={slt_id}" target="dialog"><span>修改</span>
							</a>
						</li>
					</ul>
				</div>
				<table class="table" width="100%" layouth="138">
					<thead>
						<tr>
							<th>
								编号
							</th>
							<th>
								用户名
							</th>
							<th>
								密码
							</th>
							<th>
								姓名
							</th>
							<th>
								性别
							</th>
							<th>
								电话
							</th>
							<th>
								职务
							</th>
						</tr>
					</thead>
					<tbody>
					 
						<c:forEach var="item" items="${list}" varStatus="s">
							<tr target="slt_id" rel="${item.id}">
								<td>${s.index + 1}</td>
								<td>
									${item.name}
								</td>
								<td>
									${item.password}
								</td>
								<td>
									${item.truename}
								</td>
								<td>
									${item.sex}
								</td>
								<td>
									${item.mobile}
								</td>
								<td>
									${item.position}
								</td>
							</tr>
						</c:forEach> 
					</tbody>
				</table>
				<div class="panelBar">
					<div class="pages">
						<span>显示</span>
						<select name="pagesitem"
							onchange="navTabPageBreak({pagesitem:this.value})">
							<c:forEach begin="10" end="40" step="10" varStatus="s">
								<option value="${s.index}" ${pagesitem eq s.index ? 'selected="selected"' : ''}>
									${s.index}
								</option>
							</c:forEach>
						</select>
						<span>共${countitem}条</span>
					</div>
					<div currentPage="${countitem}" pageNumShown="10"
						numPerPage="${pagesitem }" totalCount="${countitem}"
						targetType="navTab" class="pagination"></div>
				</div>
			</div>
		</div>
